package com.gurid.service.trade.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gurid.service.base.model.BaseEntity;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 支付日志表
 * </p>
 *
 * @author Gurid
 * @since 2024-06-04
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("trade_pay_log")
@Schema(name = "PayLog", description = "支付日志表")
public class PayLog extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "订单号")
    private String orderNo;

    @Schema(description = "支付完成时间")
    private Date payTime;

    @Schema(description = "支付金额（分）")
    private Long totalFee;

    @Schema(description = "交易流水号")
    private String transactionId;

    @Schema(description = "交易状态")
    private String tradeState;

    @Schema(description = "支付类型（1：微信 2：支付宝）")
    private Integer payType;

    @Schema(description = "其他属性")
    private String attr;

    @Schema(description = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;
}
